package org.example.java8.functioninterface;

public class FuncInterTest {

	public static void main(String[] args) {

//		HelloService helloService = new HelloService () {
//			@Override
//			public void sayHello(String words){
//				System.out.println("Hello " + words);
//			}
//		};
//		helloService.sayHello("world");
		
		HelloService helloService = words -> System.out.println("Hello " + words);
		helloService.sayHello("world");

	}

}
